﻿//  

#region

using Microsoft.Practices.Composite.Regions;
using Microsoft.Practices.Unity;
using pushbomb.composite.core;

#endregion

namespace HitTestItemSelector
{
    public class CountSelectorModule : PrismModuleBase 
    {
        public CountSelectorModule(IUnityContainer fs) : base(fs)
        {

             Container.RegisterType<IView, ItemCountSelector>();
            Container.RegisterType<IViewModel, SelectorViewModel>();
                      


        }

        public override void Initialize()
        {
            //Container.RegisterType<IViewModel, SelectorViewModel>(
            // new ContainerControlledLifetimeManager());


            var view =  Container.Resolve<IViewModel>();
            RegionManager.AddToRegion("SelectionRegion", view.View);
        }
    }
}